package com.eascs.web.demo.scheme;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.eascs.site.controller.BaseRestController;
import com.eascs.site.scheme.HttpScheme;
import com.eascs.site.scheme.Scheme;
import com.eascs.site.view.BaseRestResult;

@Controller
public class SchemeBaseRestResultController extends BaseRestController {

	@RequestMapping(value = "/demo/scheme/http", method = RequestMethod.GET)
	@HttpScheme(Scheme.HTTP)
	public Object http() {
		return BaseRestResult.buildSuccessResult();
	}

	@RequestMapping(value = "/demo/scheme/https", method = RequestMethod.GET)
	@HttpScheme(Scheme.HTTPS)
	public Object https() {
		return BaseRestResult.buildSuccessResult();
	}

}